package com.trivia.utils

import java.util.Random

class RandomListUtls {
	
	private List fullList
	private int quantity
	private Random random = new Random();
	
	public List getRandomSubList()
	{
		List subList
		
			
		
		
		subList
	}
	
	private int[] getRandIds()
	{
		int t = 0; 
		int n = 10;
		int[] numeros = new int[10];
		int[] resutaldo = new int[5];
		int[] _t = new int[5];
		//rellenamos un vector con numeros ordenados del 0..9
		for (int i = 0; i < numeros.length; i++) {
			numeros[i] = i;
		}
		
		for (int i = 0; i < 5; i++) {
			t = rm.nextInt(n); //tira valor aleatorio desde 0 ...n
			resutaldo[i] = numeros[t];
			_t[i]=t;
		
			for (int j = t; j < numeros.length-1; j++) {
				numeros[j] = numeros[j + 1]; //corrimiento del vector
			}
			n--;
		}
		
		return resutaldo
	}
	

}
